Send click and conversion events from your Salesforce B2C commerce store.
view
, click
, and conversion
events when users add a product to their cart or complete a purchase.
To start capturing events, select Enable insights events in the integration’s Business Manager module (Business Manager > Merchant Tools > Algolia > Algolia).
Event behavior depends on the cartridge you use.
view
and click
, sent from Autocomplete, category pages, and the search results page.addedToCartObjectIDsAfterSearch
, sent when products are added to the cart.purchasedObjectIDsAfterSearch
, sends a purchase
event, with the relevant purchased product IDs when users reach the order confirmation page.userToken
and the ID of the search query that led to them. The SFRA cartridge has mechanisms to keep track of those.
queryID
queryID
of the search that triggered a conversion event, it’s sent in the event payload.
queryID
comes from the underlying InstantSearch instance.queryID
to the query string URL and uses it when a user adds the product to their cart.userToken
and authenticatedUserToken
dwanonymous_
cookie to set the userToken
on insights events.
For authenticated users, it also relies on the session object to retrieve and set the authenticatedUserToken
.
view
and click
, sent from Autocomplete, category pages, and the search results page.addedToCartObjectIDsAfterSearch
, sent when products are added to the cart.